package cn.tedu.spring.auto;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: Miyako
 * @Date: 2024-08-02-15:13
 * @Description:
 */

public class TestUserCache {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.auto");
//        UserCache bean1 = context.getBean(UserCache.class);
        Cache bean = context.getBean("A",Cache.class);

        System.out.println(bean);

    }
}
